﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using WebApiThird.Entity;

namespace WebApiThird.Config
{
    public class StudentConfig : IEntityTypeConfiguration<Student>
    {
        public void Configure(EntityTypeBuilder<Student> builder)
        {
            builder.ToTable("T_Student").ToTable(p => p.HasComment("学生表"));
            builder.HasKey(p => p.Id);
        }
    }
}
